using Volo.Abp.Application.Dtos;
using Volo.Abp.Domain.Entities;

namespace WL.Think.Abp.Dto;

/// <summary>
/// 实体对应DTO
/// </summary>
[Serializable]
public abstract class BaseEntityDto : AuditedEntityDto<Guid>, IHasConcurrencyStamp
{
    /// <summary>
    /// 并发令牌
    /// </summary>
    public virtual string ConcurrencyStamp { get; set; }

    protected BaseEntityDto()
    {
        ConcurrencyStamp = Guid.NewGuid().ToString("N");
    }
}
